ComponentOne Bitmap for WPF
Create(RenderTarget,BitmapLock,Nullable<BitmapProperties>) Method

C1.WPF.DX.4 Assembly > C1.Util.DX.Direct2D Namespace > Bitmap Class > Create Method : Create(RenderTarget,BitmapLock,Nullable<BitmapProperties>) Method
An instance of RenderTarget.
An RenderTarget that contains the data to share with the new Bitmap.
The pixel format and DPI of the bitmap to create . The C1.Util.DX.DXGI.Format portion of the pixel format must match the C1.Util.DX.DXGI.Format of data or the method will fail, but the alpha modes don't have to match. To prevent a mismatch, you can pass NULL or the value obtained from the {{D2D1::PixelFormat}} helper function. The DPI settings do not have to match those of data. If both dpiX and dpiY are 0.0f, the default DPI, 96, is used.
Creates an Bitmap that points to the bitmap data already stored in the C1.Util.DX.WIC.BitmapLock.
Syntax
'Declaration
 
Public Overloads Shared Function Create( _
   ByVal renderTarget As RenderTarget, _
   ByVal bitmapLock As BitmapLock, _
   ByVal bitmapProperties As System.Nullable(Of BitmapProperties) _
) As Bitmap
public static Bitmap Create( 
   RenderTarget renderTarget,
   BitmapLock bitmapLock,
   System.Nullable<BitmapProperties> bitmapProperties
)

Parameters

renderTarget
An instance of RenderTarget.
bitmapLock
An RenderTarget that contains the data to share with the new Bitmap.
bitmapProperties
The pixel format and DPI of the bitmap to create . The C1.Util.DX.DXGI.Format portion of the pixel format must match the C1.Util.DX.DXGI.Format of data or the method will fail, but the alpha modes don't have to match. To prevent a mismatch, you can pass NULL or the value obtained from the {{D2D1::PixelFormat}} helper function. The DPI settings do not have to match those of data. If both dpiX and dpiY are 0.0f, the default DPI, 96, is used.
See Also

Reference

Bitmap Class
Bitmap Members
Overload List